package com.mxx.common.utils.date;

import java.time.format.DateTimeFormatter;

public class DateFormatterUtil {

    public static DateTimeFormatter dateTimeFormatter() {
        return DateTimeFormatter.ofPattern(Pattern.DATE_TIME);
    }

    public static DateTimeFormatter dateFormatter() {
        return DateTimeFormatter.ofPattern(Pattern.DATE);
    }

    public static DateTimeFormatter timeFormatter() {
        return DateTimeFormatter.ofPattern(Pattern.TIME);
    }

    public static DateTimeFormatter timeCronFormatter() {
        return DateTimeFormatter.ofPattern(Pattern.TIME_CRON);
    }

    public static DateTimeFormatter dateTimeCronFormatter() {
        return DateTimeFormatter.ofPattern(Pattern.DATE_TIME_CRON);
    }

    public static DateTimeFormatter dateCronFormatter() {
        return DateTimeFormatter.ofPattern(Pattern.DATE_CRON);
    }

    public static DateTimeFormatter timesFormatter() {
        return DateTimeFormatter.ofPattern(Pattern.TIME_S);
    }

    public static DateTimeFormatter dateTimeSFormatter() {
        return DateTimeFormatter.ofPattern(Pattern.DATE_TIME_S);
    }
}
